#include "KPF_Thread.h"

KPF_Thread::KPF_Thread( void )
	: pm_ThreadHandle(NULL)
{
	pm_ThreadHandle = os_thread_create( osKPFThread, this, 
													OS_THREAD_PRIORITY_NORMAL, 1024 * 10 );
}

KPF_Thread::~KPF_Thread( void )
{
	if ( pm_ThreadHandle )
	{
		os_thread_wait( pm_ThreadHandle );
		
		
	}
}

void KPF_Thread::Run( void )
{

}
	
void *KPF_Thread::osKPFThread( void *pParam )
{
	KPF_Thread *pThread = (KPF_Thread *)pParam;
	
	if ( pThread )
	{
		pThread->Run(  );
	}
}
